package com.bachongLightNovel.audit.mapper;

import com.bachongLightNovel.model.dto.audit.AuditLogsDto;
import com.bachongLightNovel.model.pojo.audit.AuditLogs;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author vermouth
 */
@Mapper
public interface AuditLogsMapper {

    //插入一条审核日志
    void insert(AuditLogs auditLogs);

    //查询审核日志总数
    Long selectCount();

    //根据查询条件查询审核日志
    List<AuditLogs> selectByQuery(Integer current, Integer size, AuditLogsDto dto);

    //根据id修改是否被删除字段
    void updateDelete(Long id);
}
